<template>
	<view class="subsection">
		<view class="item" v-for="(item, index) in stepList" :key="index">
			<view class="title">{{item.name}}</view>
			<u-icon class="arrow" v-if="index !== stepList.length - 1" name="arrow-right-double"></u-icon>
		</view>
	</view>
</template>

<script>
	export default {
		name:"Steps",
		props: {
			stepList: {
				type: Array,
				default: []
			},
		},
		data() {
			return {
				current: 0
			};
		}
	}
</script>

<style lang="scss" scoped>
	.subsection{
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		.item{
			display: flex;
			flex-direction: row;
			margin-top: 20rpx;
			.title{
				height: 50rpx;
				padding-left: 20rpx;
				padding-right: 20rpx;
				border-radius: 25rpx;
				background-color: #007AFF;
				display: flex;
				justify-content: center;
				align-items: center;
				font-size: 20rpx;
			}
			
			.arrow{
				margin-left: 5rpx;
				margin-right: 5rpx;
			}
		}

	}
</style>
